﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BesAsm.Emgaats.Core;
using BesAsm.Emgaats.Core.Commands;
using BesAsm.Emgaats.ModelBuilder;

namespace BesAsm.Emgaats.ModelBuilderUI.Commands
{
  public class DeployHydraulicsCommand : IEmgaatsExtensionCommand
  {
    private string _fileName;
    private Model _model;
    
    public DeployHydraulicsCommand(Model model, string fileName)
    {
      _model = model;
      _fileName = fileName;
    }

    #region IEmgaatsExtensionCommand Members

    public void Execute()
    {
      HydraulicsBuilder hb = new HydraulicsBuilder(_model);
      hb.DeployHydraulics(_fileName);
    }

    public void Undo()
    {
      throw new NotImplementedException();
    }

    #endregion
  }
}
